package com.test2;

/**
 * @author cjx
 * @create 2024/06/12
 * @description
 */
public class PingpangCoach extends Coach implements Speak {
    public PingpangCoach() {
    }

    public PingpangCoach(String name, int age) {
        super(name, age);
    }

    @Override
    public void teach() {
        System.out.println("乒乓球教练" + getName() + getAge() + "岁，再教打乒乓球");
    }

    @Override
    public void speakEnglish() {
        System.out.println("乒乓球教练" + getName() + getAge() + "岁，再说英语");
    }
}
